<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<h2>Créer une CheckList</h2>

<div>
<s:form>
<div class="questionslist">
	<h3><s:property value="categorie.nom" /></h3>
	<ul>
		<s:iterator var="question" status="status" value="questionList">
		<li>
			<s:hidden name="reponseList[%{#status.index}].question.id" value="%{id}"/>
			<s:property value="#question.question" />
			<s:radio name="reponseList[%{#status.index}].value" list="#{true:'Oui', false:'Non'}"  />
		</li>
		</s:iterator>
	</ul>
</div>
<div>
	<s:submit value="Suivant" action="repondreCheckList" />
	<s:submit value="Précédent" action="precedentCheckList" />
</div>
</s:form>
</div>